﻿using HCService.Service;
using System;
using System.Net;
using System.Net.Sockets;
namespace HCService
{
	public class Program
	{
		public static ServiceBase service;
		//static readonly string ipString = "192.168.3.90";
		static readonly int portString = 11;

		static void Main(string[] args)
		{
			service = new ServiceBase((bytes) => Console.WriteLine("接受数据"));
			//监听本机所有IP的11端口
			service.Connect(null, portString);
			Console.ReadKey();
		}
	}
}
